package com.xin.di.uav.applet.service;

import com.xin.di.uav.applet.request.ServiceAreaAddParam;
import com.xin.di.uav.applet.request.ServiceAreaEditParam;
import com.xin.di.uav.common.response.IdAndNameResp;
import com.xin.di.uav.applet.resp.ServiceAreaResp;
import com.xin.di.uav.common.request.common.IdRequest;
import com.xin.di.uav.operate.po.ServiceAreaPO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


public interface ServiceAreaService {
    boolean add(ServiceAreaAddParam serviceArea);

    boolean delete(String id);

    boolean update(ServiceAreaEditParam serviceArea);

    boolean updateStatus(IdRequest idRequest);

    ServiceAreaPO getById(String id);

    ServiceAreaResp list(int pageNum, int pageSize, String serviceRegion);


    List<IdAndNameResp> getIdAndName(@RequestParam(required = false) String serviceRegion);
}
